import request from '@/utils/request'


// 查询列表
export function sysDynamicTableConfigList(data) {
  return request({
    url: '/fkmalls-bac/sysDynamicTableConfig/list',
    method: 'post',
    data: data
  })
}
//查询表头
export function getTableHeadListByType(configType) {
  return request({
    url: '/fkmalls-bac/sysDynamicTableConfig/getTableHeadListByType/' + configType,
    method: 'get',
  })
}
//新增
export function sysDynamicTableConfigAdd(data) {
  return request({
    url: '/fkmalls-bac/sysDynamicTableConfig/add',
    method: 'post',
    data: data
  })
}
//删除   /sysDynamicTableConfig/delete/{ids}
export function sysDynamicTableConfigDelete(ids) {
  return request({
    url: '/fkmalls-bac/sysDynamicTableConfig/delete/' + ids,
    method: 'post',
  })
}
//修改   /sysDynamicTableConfig/update
export function sysDynamicTableConfigUpdate(data) {
  return request({
    url: '/fkmalls-bac/sysDynamicTableConfig/update',
    method: 'post',
    data: data
  })
}
//详情    /sysDynamicTableConfig/{id}
export function sysDynamicTableConfigDetail(id) {
  return request({
    url: '/fkmalls-bac/sysDynamicTableConfig/' + id,
    method: 'get',
  })
}
//解析表头   /sysDynamicTableConfig/parseFileHeadList
export function parseFileHeadList(data) {
  return request({
    url: '/fkmalls-bac/sysDynamicTableConfig/parseFileHeadList',
    method: 'post',
    data: data,
    headers: { "content-type": "multipart/form-data" },
  })
}